package noi.anim.com;

import android.content.Context;
import android.widget.Toast;

public class adds {
	//wodotryski i blyskotrzaski
	public static void showToastMessage(String message, Context context)
	{
		try
		{
			Toast toast = Toast.makeText(context, message, Toast.LENGTH_SHORT);
			toast.show();
		} catch (Exception ex)
		{
			ex.printStackTrace();
		}
	}
	//toast
	public static void showToastMessage(String message, Context context, int duration)
	{
		try
		{
			Toast toast = Toast.makeText(context, message, duration);
			toast.show();
		} catch (Exception ex)
		{
			ex.printStackTrace();
		}
	}

}
